package main

import "fmt"

var complete chan int = make(chan int)

func loop() {
	for i := 0; i < 10; i++ {
		fmt.Printf("i == %d \n", i)
	}
	<-complete
}

func main() {
	go loop()
	complete <- 1

}
